﻿<?xml version="1.0" encoding="utf-8"?>                                         
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
<xsl:decimal-format name='H' grouping-separator='-' />
<xsl:decimal-format name='S' grouping-separator='/' />
<xsl:decimal-format name='C' grouping-separator=',' />
<xsl:template match="/">                                       
<html version="Version 1.0.0.1 ( build : 800902_001 )">
<HEAD>

<META content="text/html; charset=utf-8" http-equiv="Content-Type"></META><LINK rel="stylesheet" type="text/css" href="/resource/css/style.css"></LINK></HEAD>    
<BODY leftmargin='10'  onload="initCheck()">
    <xsl:apply-templates/>                                       
    </BODY>
  </html>                                                        
</xsl:template>                                                  
                                                                 
<xsl:template match="MXMESSAGE">                               
    <xsl:apply-templates select="cs"/>          
</xsl:template>                                                  
<xsl:template match="cs">                       



<P><STRONG><script language="javascript"><xsl:text disable-output-escaping="yes"><![CDATA[document.write('<br/>');]]></xsl:text></script>고객관리</STRONG><IMG class="Title2depGra" align="absMiddle" src="/resource/images/title_2depgra.gif" width="73" height="8" script="/resource/images/title_2depgra.gif"></IMG><script language="javascript"><xsl:text disable-output-escaping="yes"><![CDATA[document.write('<br/>');]]></xsl:text></script><script language="javascript"><xsl:text disable-output-escaping="yes"><![CDATA[document.write('<br/>');]]></xsl:text></script><form name="begin_form1" mxtype="begin_form" method="post" action="/customer.do?opcode=S01">주민등록번호<INPUT style="WIDTH: 189px; HEIGHT: 22px" class="edt_ComnLft" maxlength="13" size="18" name="CS_RRNO" stylett="1A00000022000000789C0BF77409F1B05230B4B02CA8B056F070F574F708B15230322AA800005E9B071F">
</INPUT>&#xa0;<INPUT onclick="check()" value="중복조회" type="button" name="button3">
</INPUT></form> 

</P><form name="begin_form3" mxtype="begin_form" method="post">

<P>

<TABLE border="1" cellspacing="1" cellpadding="1" width="100%" height="442" xmllink="고객정보" xml="true">

<TBODY>

<TR>

<TD bgcolor="#e0e0e0" height="29" width="217">

<P align="right">고객번호</P></TD>

<TD class="tblSrchbar" height="29" width="1056" colspan="3"><INPUT class="edt_ComnLft" value="#" size="24" name="CS_NO" xmllink="CS_NO" xml="true">
<xsl:attribute name="value"><xsl:value-of select="CS_NO"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="29" width="217">

<P align="right"><IMG class="TdSrchBallMrgn" align="absMiddle" src="/resource/images/label_ball.gif" script="/resource/images/label_ball.gif"></IMG>고객명</P></TD>

<TD class="tblSrchbar" height="29" width="1056" colspan="3"><INPUT style="WIDTH: 93px; HEIGHT: 21px" class="edt_ComnLft" value="#" size="14" name="CS_NM" stylett="1900000021000000789C0BF77409F1B052B0342EA8B056F070F574F708B15230322CA8000058C606E8" xmllink="CS_NM" xml="true">
<xsl:attribute name="value"><xsl:value-of select="CS_NM"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="29" width="217">

<P align="right"><IMG class="TdSrchBallMrgn" align="absMiddle" src="/resource/images/label_ball.gif" script="/resource/images/label_ball.gif"></IMG>주민등록번호</P></TD>

<TD class="tblSrchbar" height="29" width="1056" colspan="3"><INPUT style="WIDTH: 135px; HEIGHT: 22px" class="edt_ComnLft" value="#" maxlength="13" size="14" name="CS_RRNO" stylett="1A00000022000000789C0BF77409F1B0523034362DA8B056F070F574F708B15230322AA800005DFD0716" xmllink="CS_RRNO" xml="true">
<xsl:attribute name="value"><xsl:value-of select="CS_RRNO"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="38" width="217">

<P align="right"><IMG class="TdSrchBallMrgn" align="absMiddle" src="/resource/images/label_ball.gif" script="/resource/images/label_ball.gif"></IMG>전화번호</P></TD>

<TD class="tblSrchbar" height="38" width="1056" colspan="3">&#xa0;<INPUT style="WIDTH: 34px; HEIGHT: 21px" class="edt_ComnLft" value="#" size="4" name="TEL_NO1" stylett="1900000021000000789C0BF77409F1B052303629A8B056F070F574F708B15230322CA80000586B06E3" xmllink="TEL_NO1" xml="true">
<xsl:attribute name="value"><xsl:value-of select="TEL_NO1"/></xsl:attribute></INPUT>--<INPUT style="WIDTH: 62px; HEIGHT: 21px" class="edt_ComnLft" value="#" size="7" name="TEL_NO2" stylett="1900000021000000789C0BF77409F1B05230332AA8B056F070F574F708B15230322CA80000587F06E4" xmllink="TEL_NO2" xml="true">
<xsl:attribute name="value"><xsl:value-of select="TEL_NO2"/></xsl:attribute></INPUT>-<INPUT style="WIDTH: 61px; HEIGHT: 21px" class="edt_ComnLft" value="#" size="6" name="TEL_NO3" stylett="190000001F000000789C0BF77409F1B05230332CA8B056F070F574F708B1523002F200586E06E3" xmllink="TEL_NO3" xml="true">
<xsl:attribute name="value"><xsl:value-of select="TEL_NO3"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="30" width="217">

<P align="right"><IMG class="TdSrchBallMrgn" align="absMiddle" src="/resource/images/label_ball.gif" script="/resource/images/label_ball.gif"></IMG>우편번호</P></TD>

<TD class="tblSrchbar" height="30" width="1056" colspan="3">&#xa0;<INPUT style="WIDTH: 71px; HEIGHT: 22px" onclick="OpenWin()" value="#" size="10" name="ZIP_CODE1" stylett="1900000021000000789C0BF77409F1B05230372CA8B056F070F574F708B15230322AA80000588306E5" xmllink="ZIP_CODE1" xml="true">
<xsl:attribute name="value"><xsl:value-of select="ZIP_CODE1"/></xsl:attribute></INPUT>&#xa0;-<INPUT style="WIDTH: 77px; HEIGHT: 22px" onclick="OpenWin()" value="#" size="12" name="ZIP_CODE2" stylett="1900000021000000789C0BF77409F1B05230372FA8B056F070F574F708B15230322AA8000058E906EB" xmllink="ZIP_CODE2" xml="true">
<xsl:attribute name="value"><xsl:value-of select="ZIP_CODE2"/></xsl:attribute></INPUT>&#xa0;&#xa0;<BUTTON style="WIDTH: 92px; HEIGHT: 25px" onclick="OpenWin()" name="nbutton7" stylett="1900000021000000789C0BF77409F1B052B0342AA8B056F070F574F708B15230322DA8000058C106EB" value="button">
우편번호 조회&#xa0;</BUTTON>&#xa0;&#xa0;<INPUT style="WIDTH: 300px; HEIGHT: 21px" onclick="OpenWin()" value="#" size="47" name="ADDR" stylett="1A00000022000000789C0BF77409F1B05230363028A8B056F070F574F708B15230322CA800005D95070F" xmllink="ADDR" xml="true">
<xsl:attribute name="value"><xsl:value-of select="ADDR"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="30" width="217">

<P align="right"><IMG class="TdSrchBallMrgn" align="absMiddle" src="/resource/images/label_ball.gif" script="/resource/images/label_ball.gif"></IMG>상세주소</P></TD>

<TD class="tblSrchbar" height="30" width="1056" colspan="3"><INPUT style="WIDTH: 224px; HEIGHT: 21px" class="edt_ComnLft" value="#" size="33" name="DETL_ADDR" stylett="1A00000020000000789C0BF77409F1B05230323229A8B056F070F574F70801720D0B2A005DEA0714" xmllink="DETL_ADDR" xml="true">
<xsl:attribute name="value"><xsl:value-of select="DETL_ADDR"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="27" width="217">

<P align="right">메일주소</P></TD>

<TD class="tblSrchbar" height="27" width="1056" colspan="3"><INPUT style="WIDTH: 225px; HEIGHT: 21px" class="edt_ComnLft" value="#" size="35" name="MAILADDR" stylett="1A00000020000000789C0BF77409F1B0523032322DA8B056F070F574F70801720D0B2A005DFB0715" xmllink="MAILADDR" xml="true">
<xsl:attribute name="value"><xsl:value-of select="MAILADDR"/></xsl:attribute></INPUT></TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="32" width="217">

<P align="right">직업</P></TD>

<TD class="tblSrchbar" height="32" width="1056" colspan="3"><INPUT class="edt_ComnLft" value="#" size="24" name="JOB" xmllink="JOB" xml="true">
<xsl:attribute name="value"><xsl:value-of select="JOB"/></xsl:attribute></INPUT>&#xa0;</TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="29" width="217">

<P align="right">월수입</P></TD>

<TD class="tblSrchbar" height="29" width="1056" colspan="3"><INPUT class="edt_ComnLft" value="#" size="24" name="MM_PRFT" xmllink="MM_PRFT" xml="true">
<xsl:attribute name="value"><xsl:value-of select="MM_PRFT"/></xsl:attribute></INPUT>원</TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="29" width="217">

<P align="right">기타수입(월)</P></TD>

<TD class="tblSrchbar" height="29" width="1056" colspan="3"><INPUT class="edt_ComnLft" value="#" size="24" name="ETC_PRFT" xmllink="ETC_PRFT" xml="true">
<xsl:attribute name="value"><xsl:value-of select="ETC_PRFT"/></xsl:attribute></INPUT>원</TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="31" width="217">

<P align="right">타행부채(월)</P></TD>

<TD class="tblSrchbar" height="31" width="1056" colspan="3"><INPUT class="edt_ComnLft" value="#" size="24" name="OBNK_DEBT" xmllink="OBNK_DEBT" xml="true">
<xsl:attribute name="value"><xsl:value-of select="OBNK_DEBT"/></xsl:attribute></INPUT>원</TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="32" width="217">

<P align="right">기타부채(월)</P></TD>

<TD class="tblSrchbar" height="32" width="1056" colspan="3"><INPUT class="edt_ComnLft" value="#" size="24" name="ETC_DEBT" xmllink="ETC_DEBT" xml="true">
<xsl:attribute name="value"><xsl:value-of select="ETC_DEBT"/></xsl:attribute></INPUT>원</TD>

</TR>

<TR>

<TD bgcolor="#e0e0e0" height="63" width="217">

<P align="right">특이사항</P>

<P align="right">&#xa0;</P></TD>

<TD class="tblSrchbar" height="63" width="1056" colspan="3"><TEXTAREA style="WIDTH: 296px; HEIGHT: 57px" class="edt_ComnLft" rows="3" cols="51" name="PTCL_MTR" stylett="1A00000022000000789C0BF77409F1B05230B2342BA8B056F070F574F708B15230352FA800005EA80726" xmllink="PTCL_MTR" xml="true">
<xsl:value-of select="PTCL_MTR"/></TEXTAREA>

<P>

</P></TD>

</TR>

</TBODY></TABLE>

</P>

<P><BUTTON disabled="true" onclick="buttonClick(1)" name="nbutton1" value="button">
등록&#xa0;</BUTTON>&#xa0;<BUTTON disabled="true" onclick="buttonClick(2)" name="nbutton2" value="button">
&#xa0;수정</BUTTON>&#xa0;<BUTTON onclick="resetData()" name="nbutton3" value="button">
초기화</BUTTON><script language="JavaScript" name="wscript1" mxtype="wscript" capx="1" capy="97" src="resource/script/icommon.js">
<xsl:text disable-output-escaping="yes">
<![CDATA[
var g_CSID = "";
function OpenWin() 
{ 
  window.open('postcode.xml','postcode','width=500,height=500');
}
function checkCs()
{
	if((CS_RRNO1.value.length == 6) && (CS_RRNO2.value.length == 7))
	{
	//	var url = "/etable.do?&part_code=" + selectedvalue;
	//	location.href = url;
		alert("조회가 완료 되었습니다.");
	}
	else
	{
		alert("입력한 값이 정확하지 않습니다");
	}
}
function fnInsert()
{
		var csName = CS_NM.value;
		var csTel = TEL_NO1.value;
		var csPost = ZIP_CODE1.value;
		var csAddr = DETL_ADDR.value;
		if (csName == null || csName.length == 0) 
			{
			alert("이름을 입력하십시오");
			}
		if (csTel == null || csTel.length == 0)
			{
			alert("전화번호를 입력하십시오");
			}
		if (csPost == null || csPost.length == 0)
			{
			alert("우편번호를 입력하십시오");
			}
		if (csAddr == null || csAddr.length == 0)
			{
			alert("상세주소를 입력하십시오");
			}
		else
			{
			alert("등록되었습니다.");
			}
	//g_CSID = CSID.value;
	
	iajax.openSync("/customer.do");
	iajax.addParam(iconst.OPCODE, iconst.I02);
	iajax.addParam("CS_NO", CS_NO.value);
	iajax.addParam("CS_NM", CS_NM.value);
	iajax.addParam("TEL_NO1", TEL_NO1.value);
	iajax.addParam("TEL_NO2", TEL_NO2.value);
	iajax.addParam("TEL_NO3", TEL_NO3.value);
	iajax.addParam("ZIP_CODE1", ZIP_CODE1.value);
	iajax.addParam("ZIP_CODE2", ZIP_CODE2.value);
	iajax.addParam("DETL_ADDR1", DETL_ADDR1.value);
	iajax.addParam("DETL_ADDR2", DETL_ADDR2.value);
	iajax.addParam("MAILADDR", MAILADDR.value);
	iajax.addParam("JOB", JOB.value);
	iajax.addParam("MM_PRFT", MM_PRFT.value);
	iajax.addParam("ETC_PRFT", ETC_PRFT.value);
	iajax.addParam("OBNK_DEBT", OBNK_DEBT.value);
	iajax.addParam("ETC_DEBT", ETC_DEBT.value);
	iajax.addParam("PTCL_MTR", PTCL_MTR.value);
	iajax.send();
	
		
}
function fnUpdate()
{
	//g_CSID = CSID.value;
	iajax.openSync("/customer.do");
	iajax.addParam(iconst.OPCODE, iconst.U02);
	iajax.addParam("CS_NO", CS_NO.value);
	iajax.addParam("CS_NM", CS_NM.value);
	iajax.addParam("TEL_NO1", TEL_NO1.value);
	iajax.addParam("TEL_NO2", TEL_NO2.value);
	iajax.addParam("TEL_NO3", TEL_NO3.value);
	iajax.addParam("ZIP_CODE1", ZIP_CODE1.value);
	iajax.addParam("ZIP_CODE2", ZIP_CODE2.value);
	iajax.addParam("DETL_ADDR1", DETL_ADDR1.value);
	iajax.addParam("DETL_ADDR2", DETL_ADDR2.value);
	iajax.addParam("MAILADDR", MAILADDR.value);
	iajax.addParam("JOB", JOB.value);
	iajax.addParam("MM_PRFT", MM_PRFT.value);
	iajax.addParam("ETC_PRFT", ETC_PRFT.value);
	iajax.addParam("OBNK_DEBT", OBNK_DEBT.value);
	iajax.addParam("ETC_DEBT", ETC_DEBT.value);
	iajax.addParam("PTCL_MTR", PTCL_MTR.value);
	iajax.send();
}
function resetData()
	{
	// document.getElementById("begin_form1").reset();
	//begin_form1.reset();
	CS_NO.value="";
	CS_NM.value="";
	TEL_NO1.value="";
	TEL_NO2.value="";
	TEL_NO3.value="";
	ZIP_CODE1.value="";
	ZIP_CODE2.value="";
	DETL_ADDR1.value="";
	DETL_ADDR2.value="";
	MAILADDR.value="";
	JOB.value="";
	MM_PRFT.value="";
	ETC_PRFT.value="";
	OBNK_DEBT.value="";
	ETC_DEBT.value="";
	PTCL_MTR.value="";
	}
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><script language="JavaScript" name="wscript1" mxtype="wscript" capx="51" capy="65" tn="634346999107375929">
<xsl:text disable-output-escaping="yes">
<![CDATA[
function OpenWin() 
{ 
  window.open('/post.do','postcode','width=500,height=500,scrollbars=yes');
}
function buttonClick(text)
{
		if (text == "1") {
			document.begin_form3.action="/customer.do?opcode=I01";
			document.begin_form3.submit();
			alert("등록되었습니다.");
		} else if (text == "2") {
			document.begin_form3.action="/customer.do?opcode=U01";
			document.begin_form3.submit();
			alert("수정되었습니다.");
		}
		var url = "/customer.do";
		location.href = url;
}

function resetData()
{
	//document.begin_form3.reset();
	document.begin_form3.CS_NO.value="";
	document.begin_form3.CS_NM.value="";
	document.begin_form3.CS_RRNO.value="";
	document.begin_form3.TEL_NO1.value="";
	document.begin_form3.TEL_NO2.value="";
	document.begin_form3.TEL_NO3.value="";
	document.begin_form3.ZIP_CODE1.value="";
	document.begin_form3.ZIP_CODE2.value="";
	document.begin_form3.ADDR.value="";
	document.begin_form3.DETL_ADDR.value="";
	document.begin_form3.MAILADDR.value="";
	document.begin_form3.JOB.value="";
	document.begin_form3.MM_PRFT.value="";
	document.begin_form3.ETC_PRFT.value="";
	document.begin_form3.OBNK_DEBT.value="";
	document.begin_form3.ETC_DEBT.value="";
	document.begin_form3.PTCL_MTR.value="";
}

function check()
{
	var str = begin_form1.CS_RRNO.value;
	if (str.length == 13)  
	{
		document.begin_form1.submit();
	} else {
		alert("잘못입력하셨습니다");	
	}
}

function initCheck()
{
	if(begin_form4.OPCODE.value == "00") //중복된 값이 있을 때 
	{
		begin_form3.nbutton2.disabled = false;
		begin_form3.CS_NM.disabled = true;
		begin_form3.CS_RRNO.disabled = true;
		begin_form3.CS_NO.disabled = true;
	} else if (begin_form4.OPCODE.value == "01") //중복된 값이 없어 신규등록 할 수 있을 때
	{
		begin_form3.nbutton1.disabled = false; 
		begin_form3.CS_NO.disabled = true;
		begin_form3.CS_NO.value = '자동입력됩니다';
	}
	
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<-->

</P>

<P>

</P></form> 

<P><form name="begin_form4" mxtype="begin_form" method="post"><INPUT value="#" size="24" name="OPCODE" xmllink="OPCODE" xml="true">
<xsl:attribute name="value"><xsl:value-of select="OPCODE"/></xsl:attribute></INPUT></form> 

</P>

<P>&#xa0;

</P>
</xsl:template>										  
</xsl:stylesheet>									  
